package com.tanglongan.designPattern.dp02_abstractFactory.demo01;

public class CourseClient {

    public static void main(String[] args) {
        CourseFactory factory;

        // Java课程
        factory = new JavaCourseFactory();
        factory.createNote().edit();
        factory.createVideo().record();

        // Python课程
        factory = new PythonCourseFactory();
        factory.createNote().edit();
        factory.createVideo().record();
    }
}
